package com.ss.android.article.browser.dialog;

import android.content.DialogInterface;
import android.text.TextUtils;
import android.widget.EditText;
import com.a.a.e;
import com.ss.android.article.browser.database.BrowserHistory;

public final class b implements DialogInterface.OnClickListener {
    private final c a;
    private final EditText b;

    public b(c arg1, EditText arg2) {
        this.a = arg1;
        this.b = arg2;

    }

    public final void onClick(DialogInterface arg7, int arg8) {
        c v0 = this.a;
        String v1 = this.b.getText().toString();
        if(!TextUtils.isEmpty(((CharSequence)v1))) {
            String v2 = v0.a.title;
            BrowserHistory v3 = new BrowserHistory();
            v3.setTitle(v1);
            v3.setUrl("folder://" + v1);
            v3.c(v0.a.c);
            v3.h = true;
            com.a.a.a v0_1 = v0.b.a.a(v2, v1);
            ((e)v0_1).b = android.support.design.a.c();
            ((e)v0_1).c = android.support.design.a.b();
            v0_1.a(new l());
        }
    }
}

